<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script type="text/javascript">
	var str = 'abcd';

	alert(str.charAt(2))		//c
	</script>
</head>
<body>
	
</body>
</html>